package com.powerrich.shopgood.controller;

import com.powerrich.pojo.VipPO;
import com.powerrich.service.VipService;
import com.powerrich.unit.TestUnit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 黄雨
 * @title: VipController
 * @projectName demo
 * @description: TODO
 * @date 2019-04-0413:52
 */
@RestController
@RequestMapping("good")
public class GoodController {

    @Autowired
    private VipService vipService;

    @GetMapping("getVipById")
    @ResponseBody
    public VipPO getVipById(){
        return vipService.getVipById(1);
    }

    @GetMapping("test")
    public String test(){
        return TestUnit.getHello();
    }

}
